﻿@using JULONG.WEB.Library
@model IEnumerable<DFYE.Web.Models.channel>
@{
    string controller = Html.getRoute(routeKeyEnum.controller);
    string oid = Html.getRoute(routeKeyEnum.id);
    Layout = null;
 }
<div class="caption">学校介绍</div>
<div class="item"><a href="/manage/SiteLibrary/Edit/intro,学校概况">学校概况</a></div>
<div class="item"><a href="/manage/SiteLibrary/Edit/tearcher,师职介绍">师职介绍</a></div>
<div class="item"><a href="/manage/SiteLibrary/Edit/achievement,办学成绩">办学成绩</a></div>
<div class="item"><a href="/manage/SiteLibrary/Edit/headmaster,校长寄语">校长寄语</a></div>
<hr />
<div class="caption">办学特点</div>
@*<div class="item"><a href="/manage/SiteLibrary/Edit/specialty1,项目优势">项目优势</a></div>*@
<div class="item"><a href="/manage/SiteLibrary/Edit/specialty2,授课模式">授课模式</a></div>
<div class="item"><a href="/manage/SiteLibrary/Edit/specialty3,课程设置">课程设置</a></div>
<hr />
<div class="caption">动态信息</div>
<div class="item">@Html.ActionLink("新闻", "Index/1", "document", null, new { controller = "document" })</div>
<div class="item">@Html.ActionLink("相册", "Index/2", "document", null, new { controller = "document" })</div>
<div class="item">@Html.ActionLink("教师日记", "Index/3", "document", null, new { controller = "document" })</div>
<div class="item">@Html.ActionLink("每周推荐", "Index/4", "document", null, new { controller = "document" })</div>
<hr />
<div class="caption">学员关系档案</div>
<div class="item"><a href="/manage/student">学员</a></div>
<div class="item"><a href="/manage/guestbook/topIndex/">家长留言</a></div>
<div class="item"><a href="/manage/studentDaily/students">学员日志</a></div>
<div class="item"><a href="/manage/studentDailyType">日志类型</a></div>
<div class="item"><a href="/manage/studentClass">班级</a></div>
<hr />
<div class="caption">其它栏目</div>
<div class="item"><a href="/manage/SiteLibrary/Edit/teachingHelp,入学帮助">入学帮助</a></div>

<div class="item"><a href="/manage/SiteLibrary/Edit/train,课外培训">课外培训</a></div>

<div class="item"><a href="/manage/SiteLibrary/Edit/join,学员招募">学员招募</a></div>
@*
<div class="item">@Html.ActionLink("产品管理", "Index", "product", null, new { controller = "product" })</div>
<div class="item">@Html.ActionLink("产品类型管理", "Index", "productType", null, new { controller = "productType" })</div>*@

@*<div class="item">@Html.ActionLink("动态信息类型", "Index", "documentType", null, new { controller = "documentType" })</div>*@
<hr />  
<div class="item">@Html.ActionLink("客户留言管理", "Index", "guestBook", null, new { controller = "guestBook" })</div>
<hr />
<div class="item">@Html.ActionLink("用户管理", "Index", "user", null, new { controller = "user" })</div>

@*@foreach (var item in Model) {
    <hr />
    <div class="item"><strong>@Html.ActionLink(@item.name, "#")</strong></div>
    foreach (var subItem in item.channel_sub)
    {
        <div class="item">@Html.ActionLink(@subItem.name, "#")</div>
    }
}*@
@*<div class="item">@Html.ActionLink("管理日志", "Index", "Log", null, new { controller = "Log" })</div>
<div class="item">@Html.ActionLink("用户登录日志", "Index", "loginLog", null, new { controller = "loginLog" })</div>*@

@*<div class="item"><a target="_blank" href="\">打开网站</a></div>*@

<script type="text/javascript">
    $(function () {
        var controller = "@controller";
        var oid = "@oid";
        var urlsObj = $(".menuPanle .item a").each(function () {

            if ($(this).attr("controller") == "document" && controller == "document") {

                if (oid == $(this).attr("oid")) {
                    $(this.parentNode).addClass("focus");
                } else if ($(this).attr("oid")==undefined) {
                    $(this.parentNode).addClass("focus");
                }
            } else {

                if ($(this).attr("controller") == controller) {

                    $(this.parentNode).addClass("focus");



                }
            }

        })

    });
</script>